package com.drink.yan.intf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.meta.framework.common.annotation.Excel;
import com.meta.framework.copy.Copyable;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * java类简单作用描述
 *
 * @Title:
 * @Package: com.drink.yan.intf.entity.
 * @Author: M.simple
 * @Remark: The modified content
 * @CreateDate: 2023/11/24 20:37
 * @Version: v2.0
 */
@Data
public class YanOrder extends Copyable {

    @Excel(name = "订单编号", sort = 1)
    @TableId(value = "order_no", type = IdType.AUTO)
    private Long orderNo;
    private String orderType;
    @Excel(name = "订单商品", sort = 12)
    private String orderName;
    private Long customerUid;
    @Excel(name = "学生姓名", sort = 2)
    private String customerName;
    @Excel(name = "手机号", sort = 3)
    private String customerTel;
    @Excel(name = "订单总价（元）", sort = 14)
    private BigDecimal orderPrice;
    private String expressType;
    private String orderStatus;
    private String orderAddress;
    private String opSource;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime orderTime;
    private String delFlag;
    private Long createBy;
    @Excel(name = "下单时间", sort = 17)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime createTime;
    private Long updateBy;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime updateTime;
    private String remark;
}
